package com.easypan.ExceptionHandler;

import com.easypan.entity.vo.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import javax.xml.transform.Result;

//全局异常处理
@RestControllerAdvice
public class ycbg {
    @ExceptionHandler
    public R ex(Exception e)
    {
        e.printStackTrace();
        return  R.error("对不起,操作失败,请联系管理员");
    }
}

